package skiree.host.abetsy.service.util;

public class PlatFormUtil {

    public static String parse(String url) {
        if (url == null || url.isEmpty()) {
            return "unknown";
        }
        if (url.contains("v.qq.com")) {
            return "tx";
        }
        if (url.contains("v.youku.com")) {
            return "yk";
        }
        if (url.contains("www.mgtv.com")) {
            return "mg";
        }
        if (url.contains("www.iqiyi.com")) {
            return "iqy";
        }
        if (url.contains("bilibili.com")) {
            return "bl";
        }
        return "unknown";
    }
}
